package cn.jinjie.day05.test4;

public class BoyFriend extends Person {
    public BoyFriend() {
    }

    public BoyFriend(String name, double height) {
        super(name, height);
    }

    public void makeMoney() {
        System.out.println("男朋友挣钱");
    }

    public void talking(GirlFriend g1) {
        //和女朋友一块逛街,用上女朋友类
        System.out.println("和" + g1.getName() + "一起逛街");
    }
}
